package 
{
	import com.commissarxiii.FlashLoader;
	import flash.display.Sprite;
	import flash.external.ExternalInterface;
	
	/**
	 * FlashLoader is used to facilitate the loading of files in
	 * a browser running locally. This application must be compiled
	 * using the Local Only security sandbox to load files locally.
	 * 
	 * @author Benjamin Van Heest
	 * @version 1.0
	 */
	public class Main extends Sprite 
	{
		private var _flashLoader:FlashLoader;
		
		/**
		 * Application entry point.
		 */
		public function Main()
		{
			// entry point
			init();
		}
		
		/**
		 * Initialize FlashLoader
		 */
		private function init():void 
		{
			_flashLoader = new FlashLoader();
			
			// indicate that FlashLoader is ready to use
			if (ExternalInterface.available)
			{
				ExternalInterface.call('FlashLoader.ready');
			}
		}
	}
	
}